@import './element-variables';
@import './epm-variables';

/* Layout
-------------------------- */
/*
    html
    body
    app
*/
html,
body,
#app {
  height: $--argument-full-pre;
  margin: 0;
  padding: 0;
  overflow:hidden;
}

.full-pre {
  height: $--argument-full-pre;
  overflow: hidden;
  // background: $--color-grayish-1;
}

.full-pre-width {
  width: $--argument-full-pre;
}

// head -->
/*
    logo
    header
    title
    global
*/
.header {
  background-color: $--color-white;
  color: $--color-template-button-text-primary;
  border-bottom: 1px solid $--border-color-base;
  height: 100%;
  text-align: left;
  line-height: 60px;
  font-size: 20px;
  font-weight: bold;
}

.sub-title {
  margin: 0;
  padding: 0;
  padding-left: 34px;
  font-size: 20px;
  color: #393534;
  font-weight: 700;
}

.left-menu {
  position: relative;

  //侧边菜单栏头部
  &-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 15px;
    height: 60px;
    color: #fff;
    :nth-child(2) {
      margin-left: 10px;
      margin-right: 50px;
      font-size: 14px;
    }
    :nth-child(3){
      width: 20px;
      height: 20px;
    }
  }
}

.global-menu {
  display: flex;
  position: absolute;
  right: 10px;
  top: 0;
  list-style: none;
  margin: 0;
  padding: 0;

  a {
    text-decoration: none;
    color: $--color-primary;

    &:hover {
      color: $--color-primary;
      text-decoration: none;
    }
  }

}

//header-menu
.admin-menu {
  overflow: hidden;
  margin-top: 10px;

  li {
    float: left;
    color: #717698;
    font-size: 12px;
    //margin-right: 50px;
    font-weight: normal;
    line-height: 1;

    .onLineSum {
      width: 15px;
      height: 15px;
      display: inline-block;
      line-height: 16px;
      background: #5b73ff;
      border-radius: 15px;
      color: #fff;
      text-align: center;
    }

    .el-button--text {
      color: #717698;
      padding: 0 20px;
      height: 40px;


      &:hover,
      &:focus {
        background: #f1f1f2;
      }

    }
  }

  &__userName {
    img {
      width: 30px;
      height: 30px;
      vertical-align: middle;
      margin-right: 10px;
    }
  }
}

.adminMenu-droplist {
  padding: 0;
  text-align: center;

  .el-dropdown-menu__item {
    border-bottom: #f1efef solid 1px;
    font-size: 12px;
    width: 100px;

    &:last-of-type {
      border-bottom: none !important;
    }
  }
}


// container -->
/*
    tabs
    contents
*/
.layout-tabs {
  &.el-tabs {
    background-color: $--layout-tabs-bg;

    .el-tabs__nav-wrap {
      margin-bottom: 0;
    }

    .el-tabs__header.is-top {
      margin: 0;
      border-bottom: 0;
      border-top: 1px solid $--layout-tabs-border-color;
      box-shadow: 0px 0px 5px $--layout-tabs-shadow;

      .el-tabs__nav {
        border: 0
      }
    }

    .el-tabs__item {
      border: 0;
      background-color: $--layout-tabs-bg;
      height: 40px;
      line-height: 40px;
      color: $--layout-tabs-text-color;
    }

    .el-tabs__nav-next,
    .el-tabs__nav-prev {
      line-height: 40px;
    }

    .el-tabs__item {
      &:hover {
        color: #5b73ff;
      }

      &.is-active {
        background-color: $--layout-tabs-active-bg;
        color: $--layout-tabs-active-text-color;
      }

      &.is-closable {
        &:hover {
          padding-left: 20px;
          padding-right: 20px;
        }
      }
    }

    .el-tabs__header {
      .el-tabs__item .el-icon-close {
        color: $--layout-tabs-text-color;
        width: 14px;
      }

      .el-tabs__item.is-active .el-icon-close {
        color: $--layout-tabs-active-text-color;
      }
    }
  }
}

.contents {

  // padding: 20px;
  >div {
    padding: 20px;
    background-color: #f1f2f7;
    box-shadow: 0px 4px 3px $--layout-tabs-shadow inset;

  }

  // .el-scrollbar__view {
  //   padding-bottom: 100px;
  // }

}

// aside -->
/*
    aside
    logo
    menu
    expand
*/
// aside
.el-aside {
  background-color: $--color-blue-deep-1;
}

// logo
.logo {
  height: 60px;
  line-height: 60px;
  background-color: #181824;
  //background-image: url(../../../images/portal/logo.png);
  background-position: 12px 15px;
  background-repeat: no-repeat;
  margin: 0;
  padding: 0;
  text-indent: -666px;
}

// menu

.el-menu {
  border: 0;
}

.navMenu {

  //初始化
  .el-menu-item,
  .el-submenu .el-submenu__title {
    color: #b4bcc8;
    background-color: #1e1e2d;

    >.icon-nav-font,
    >.iconfont {
      margin-right: 6px;
      color: #485899;
    }
  }

  // 经过状态
  .el-menu-item:hover,
  .el-submenu .el-submenu__title:hover {
    color: #fff;
  }

  // 索引状态
  .el-menu-item.is-active,
  .el-submenu.is-opened .el-submenu__title {
    color: #FFFFFF;
    background-color: #111118;

    >.icon-nav-font,
    >.iconfont {
      color: #fff;
    }
  }

  // 二级菜单
  .el-menu--inline {
    .el-menu-item.is-active {
      color: #fff;
      background-color: #5c77fa;
    }
  }
}




/* no framework */
.new-edit-page {
  padding: 46px 0 62px 0;

  .template-table-list-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1;
    padding-top: 0 !important;
    height: 46px;
    border-bottom: 1px solid #E3E4E5;
    background: #f9f9f9;

    h2,
    h3 {
      padding: 0 0 0 20px;
      margin: 0 10px 0 0;
      line-height: 46px;
      font-weight: normal;
      font-size: 1.2rem;
    }

    h2 {
      float: left;
    }

    .el-steps--horizontal {
      margin: -34px auto 0 auto;
      width: 50%;

      .el-step__main {
        position: absolute;
        left: 24px;
        top: -7px;
        width: 80px;
        text-align: center;
        background: #f9f9f9;

        .el-step__title.is-process {
          color: $--color-primary;
        }
      }

      .is-process {
        .el-step__icon {
          background: $--color-primary;
          color: $--color-white;
          border-color: $--color-primary;
        }
      }

      .is-wait {
        .el-step__icon {
          background: $--color-white;
          color: $--color-primary;
          border-color: $--color-primary;
        }
      }
    }
  }

  .bottomFormBtn {
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
    height: 48px;
    padding-top: 8px;
    margin-bottom: 0 !important;
    width: 100%;
    text-align: center;
    background: #f9f9f9;
    border-top: 1px solid #E3E4E5;

    .el-form-item__content {
      margin-left: 0 !important;
      width: 100%;
    }
  }

  .template-table-list-body {
    padding: 0;
    margin: 0;
  }

}

// srcollbar
.flow-x-scrollbar {
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }

  .el-scrollbar__bar.is-vertical {
    z-index: 99;
  }
}

// ie9 hack
.el-container {
  display: block\9\0;
}

.el-container.is-vertical,
.el-aside {
  display: inline-block\9\0;
  float: left;
}

.el-container.is-vertical {
  width: calc(100% - 240px)\9\0
}

.el-upload-list__item {
  transition: none !important;
}